﻿-- -- Возврашает комментарый Columns
CREATE PROCEDURE [dbo].[USPTOOLST_TBLGetColumnDescriptions]
	@TableName [char](50) = 'Book'
WITH EXECUTE AS CALLER
AS
SET NOCOUNT ON
SELECT   objname as Colname, [value] as Description 
FROM   ::fn_listextendedproperty(NULL, 'user', 'dbo', 'table', @TableName, 'column', default)
WHERE [value] <> ''


